import request from '@/utils/request';

// 获取异常行李信息和行李匹配接口
export async function queryluggageTable(params) {
  return request('/dp/pkg/getPkgInfoPage', {
    method: 'get',
    params
  });
}
// 获取超售列表每条的信息详情
export async function queryDdetails(params) {
  return request('/dp/pkg/detailInfo', {
    method: 'get',
    params
  });
}
// // 事故单结案
export async function accidentlistClosed(params) {
  return request('/dp/pkg/pkgCase', {
    method: 'POST',
    params
  });
}
// 导出报表
export async function exportChart(params) {
  return request('/dp/pkg/exportData', {
    method: 'get',
    params,
    responseType: "blob"
  })
}

// 导出报表demo
export async function downLoadExcel(params) {
  return request('/dp/pkg/downLoadExcel', {
    method: 'get',
    params,
    responseType: "blob"
  })
}

// 导入异常行李
export function importChart(data) {
  return request('/dp/pkg/importDataByExcel', {
    method: 'post',
    data
  });
}

// 获取下拉库数据，到达航站和出发航站的
export async function queryCityInfo(params) {
  return request('/dp/sys/getSelectCityInfo', {
    method: 'get',
    params,
  })
}
